﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DemoCore.Configuration
{
    /// <summary>
    /// 客户端地址元素
    /// </summary>
    public class AddressElement : ConfigurationElement
    {
        /// <summary>
        /// 基址
        /// </summary>
        [ConfigurationProperty("baseAddress", IsRequired = true)]
        public string BaseAddress
        {
            get
            {
                return this["baseAddress"].ToString();
            }
            set
            {
                this["baseAddress"] = (object)value;
            }
        }

        /// <summary>
        /// 分组，默认值default
        /// </summary>
        [ConfigurationProperty("group", DefaultValue = "default")]
        public string Group
        {
            get
            {
                return this["group"].ToString();
            }
            set
            {
                this["group"] = (object)value;
            }
        }
    }
}
